package ca.uwo.android.giveback;

/**
 * This class represents the Giving Back module in the iWestern application
 * @author Chirag Mistry
 */
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import ca.uwo.android.BaseMenuActivity;
import ca.uwo.android.R;

public class GiveBack  extends BaseMenuActivity {
	
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.givingback_main);	//set layout
    }
    
    /**
     * This method is called when the "Learn more about the Campaign"
     * button is clicked. It redirects the user to a site explaining 
     * how their contributions are put to good use.
     * @param v	the button view that is clicked
     */
    public void onGiveBackButtonClick(View v){
    	Intent browser = new Intent(
    			Intent.ACTION_VIEW, 
    			Uri.parse(getString(R.string.alumni_givingback_link)));
    	
    	startActivity(browser);	//show url in browser
    }
}
